import requests
import json

url = "http://localhost:8080/v1/putImageV2"

payload = json.dumps({
  "thirdContentId": "img_22222",
  "source": "TextToImg",
  "contentType": "image",
  "url": "https://bj.bcebos.com/v1/ai-solution-video/ai-solution-video/verify/25321738/2025-06-04/a0801195e6d642d79453435051ca8122.jpg?authorization=bce-auth-v1%2FALTAKdpdg3bcf1mCGERsbkREKN%2F2025-06-04T12%3A50%3A34Z%2F3600%2F%2F4afd1b50b9261d7d7ef0bb2583009632d027bc3e68aa68a1bb16b220c2977f79",
  "preset": "aigc",
  "modelType": "icr-text"
})
headers = {
  'Content-Type': 'application/json'
}

for i in range(20):
    print(f"这是第 {i + 1} 次循环")  # 替换为你需要执行的代码
    response = requests.request("POST", url, headers=headers, data=payload)

    print(response.text)
